﻿using DevExpress.Blazor;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Blazor.Layout;

namespace EasyXaf.EntityDesigner.Controllers;

public class PopupCaptionPositionController : ViewController<DetailView>
{
    protected override void OnActivated()
    {
        base.OnActivated();

        if (Frame.Context == TemplateContext.PopupWindow)
        {
            ((BlazorLayoutManager)View.LayoutManager).CaptionPosition = CaptionPosition.Horizontal;
        }
    }
}
